package com.ls.thread.tj;

public class ThreadTest {
	public static void main(String[] args) {
		
		//共享资源
		Threads threads = new Threads();
		
		Thread1 t1=new Thread1(threads);
		Thread2 t2=new Thread2(threads);
		
		//对共享资源分别对应的创2个线程
		Thread a = new Thread(t1,"线程a");
		Thread b = new Thread(t2,"线程b");
		
		a.start();
		b.start();
	}
}
